<?php require_once 'ext/php/lib.php';?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">

	<title><?php echo strtoupper($page);?> - IADE</title>
	
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta name="description" content="<?php echo $page;?>" />
	<meta name="keywords" content="<?php echo KEYWORDS; ?>" />	
	
	<link rel="stylesheet" href="<?php echo BASE_URL;?>code/css/style.css"   type="text/css" media="screen" />
	<link rel="stylesheet" href="<?php echo BASE_URL;?>ext/css/style.css"  type="text/css" media="screen" />	
	<link rel="stylesheet" href="<?php echo BASE_URL;?>code/css/print.css"  type="text/css" media="print" />	
	<link rel="stylesheet" href="<?php echo BASE_URL;?>ext/js/jquery/css/smoothness/jquery-ui.custom.css"  type="text/css" media="screen" />	
	
	<link rel="shortcut icon" href="<?php echo BASE_URL; ?>ext/imgs/favicon.png"  />
	
	<!--<script type="text/javascript" src='<?php echo BASE_URL;?>ext/js/jquery/jquery.min.js'></script>-->
	<script type="text/javascript" src="<?php echo BASE_URL;?>ext/js/tinyscrollbar/js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="<?php echo BASE_URL;?>ext/js/jquery/jquery-ui.custom.min.js"></script>
	
	<!-- tinyscrollbar -->
	<script type="text/javascript" src="<?php echo BASE_URL;?>ext/js/tinyscrollbar/js/jquery.tinyscrollbar.min.js"></script>
	
	<!-- cufon -->
	<script type="text/javascript" src="<?php echo BASE_URL;?>ext/js/cufon/js/cufon.js" ></script>
	<script type="text/javascript" src="<?php echo BASE_URL;?>ext/js/cufon/fonts/Caviar_Dreams_300-Caviar_Dreams_500-Caviar_Dreams_italic_500-Caviar_Dreams_italic_500.font.js" ></script>
	
	<!--[if lt IE 7]>
	<link rel="stylesheet" type="text/css" href="<?php echo BASE_URL;?>code/css/ie/ie6.css"  />
	<script type="text/javascript" src="<?php echo BASE_URL;?>code/js/unitpngfix.js"   ></script>
	<![endif]-->
	
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo BASE_URL;?>code/css/ie/ie.css"   />
	<![endif]-->
	
	<script>
		$(document).ready(function(){
			//cufon
			try
			{
				Cufon.replace('f');
				$('f').show();
			}
			catch(err)
			{
				$('f').css('display','inline');
			}
			
			//tinyscrollbar
			if($('#scrollbar1').length>0 && screen.height<768)
			{
				var height=$(window).height()- 90- 45;
				$('#scrollbar1 .viewport').css('height',height);
				$('#scrollbar1').tinyscrollbar();	
				$(window).resize(function() {
					var height=$(window).height()- 90- 45;
					$('#scrollbar1 .viewport').css('height',height);
					$('#scrollbar1').tinyscrollbar();	
				});
			}
			
			//
			/*if($('#wowslider-container1').length>0)
			{
				var height=$(window).height()- parseInt($('#main').css('top'))- $('#footer').height()-15;
				$('#wowslider-container1').css('height',height);
			}*/
			
			//accordion			
			$('.a_item#project,.a_item#news').mouseenter(function(event) {				
				var id=$(this).attr('id');
				$('.div_item').not('#'+id).hide('slow');
				$('.div_item#'+id).show('slow');	 			
			})			
			$('.a_item').not('#project,#news').mouseenter(function() {
				$('.div_item').hide('slow');
			})			
			$('#accordion').mouseleave(function() {
				$('.div_item').hide('slow');
			})
			
			//
			$(this).bind("contextmenu", function(e) {
                e.preventDefault();
            });
		})		
	</script>
</head>

<body class="noscript ">
 
<?php require_once 'ext/php/toolbar.php'?>

<div id="wrapper">
	
<div id="header">
	<a href='?page=homepage'><img src='<?php echo BASE_URL; ?>ext/imgs/logo.png'/></a>
	<div class="clear"></div>
</div><!-- #header -->
    
<div id="main">
	
	<?php $scroll=$action=='';?> 
	<?php //$scroll=false; ?> 
	<div class="listing-rightcolumn" <?php echo $scroll?" id='scrollbar1' ":"";?> >
		<?php if($scroll){?>
		<div class="scrollbar"><div class="track"><div class="thumb"><div class="end"></div></div></div></div>
		<div class="viewport">
			 <div class="overview">
		<?php }?>
			 
				<?php require_once $page.'.php'; ?>
				
		<?php if($scroll){?>
			</div>
		</div>
		<?php }?>
	</div><!-- .column-threewide -->
	

	<div class="listing-leftcolumn">
	
		<?php require_once 'ext/php/accordion.php'?>

	</div><!-- .column-onewide --> 	

	<div class="clear"></div>

</div><!-- #main -->
 
<?php require_once 'ext/php/footer.php'; ?>

<span class="clear"></span>	

</div>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22625184-3']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</body>
</html>
